import Mock from 'mockjs';
import homeApi from './mockData/home';
import userApi from './mockData/user';

// 1.拦截的路径 2.方法 3.制造出的假数据
Mock.mock(/api\/home\/getTableData/,"get",homeApi.getTableData);
Mock.mock(/api\/home\/getCountData/,"get",homeApi.getCountData);
Mock.mock(/api\/home\/getChartData/,"get",homeApi.getChartData);
Mock.mock(/api\/user\/getUserList/,"get",userApi.getUserList);
Mock.mock(/api\/user\/deleteUser/,"put",userApi.deleteUser);
Mock.mock(/api\/user\/addUser/,"post",userApi.createUser);
Mock.mock(/api\/user\/updateUser/,"post",userApi.updateUser);






